package com.assets.room.entity;

import androidx.room.ColumnInfo;
import androidx.room.Entity;
import androidx.room.Ignore;
import androidx.room.PrimaryKey;
import java.io.Serializable;

/**
 * <p>
 * 归还表
 * </p>
 *
 * @author xyk
 * @since 2021-04-22
 */
@Entity(tableName = "t_asset_returns")
public class Returns implements Serializable {

    private static final long serialVersionUID=1L;

    /**
     * 归还id
     */
    @PrimaryKey(autoGenerate = true)
      @ColumnInfo(name = "returns_id")
    private Long returnsId;

    /**
     * 归还id
     */
    @ColumnInfo(name = "receives_id")
    private String receivesId;

    /**
     * 资产编号
     */
    @ColumnInfo(name = "asset_number")
    private String assetNumber;

    /**
     * 原所属机构
     */
    @ColumnInfo(name = "company")
    private String company;

    /**
     * 原管理部门
     */
    @ColumnInfo(name = "dept_id")
    private String deptId;

    /**
     * 原使用部门
     */
    @ColumnInfo(name = "use_dept")
    private String useDept;

    /**
     * 原存放地点
     */
    @ColumnInfo(name = "place")
    private String place;

    /**
     * 原管理人
     */
    @ColumnInfo(name = "user_id")
    private String userId;

    /**
     * 归还时间
     */
    @ColumnInfo(name = "rdate")
    private String rdate;

    /**
     * 操作员
     */
    @ColumnInfo(name = "operator")
    private String operator;

    /**
     * 归还类别
     */
    @ColumnInfo(name = "type")
    private String type;

    /**
     * 现管理部门
     */
    @ColumnInfo(name = "ndept")
    private String ndept;

    /**
     * 现管理人
     */
    @ColumnInfo(name = "nuser")
    private String nuser;

    /**
     * 现所属机构
     */
    @ColumnInfo(name = "ncompany")
    private String ncompany;

    /**
     * 现使用部门
     */
    @ColumnInfo(name = "nuse_dept")
    private String nuseDept;

    /**
     * 现存放地点
     */
    @ColumnInfo(name = "nplace")
    private String nplace;

    /**
     * 状态
     */
    @ColumnInfo(name = "status")
    private String status;


    /**
     * 申请时间
     */
    @ColumnInfo(name = "date")
    private String date;

    @ColumnInfo(name = "is_flag")
    private String isFlag;

    @Ignore
    public Returns() {
    }


    public Returns(Long returnsId, String receivesId,
                   String assetNumber, String company,
                   String deptId, String useDept,
                   String place, String userId,
                   String rdate, String operator,
                   String type, String ndept,
                   String nuser, String ncompany,
                   String nuseDept, String nplace,
                   String status, String date,
                   String isFlag) {
        this.returnsId = returnsId;
        this.receivesId = receivesId;
        this.assetNumber = assetNumber;
        this.company = company;
        this.deptId = deptId;
        this.useDept = useDept;
        this.place = place;
        this.userId = userId;
        this.rdate = rdate;
        this.operator = operator;
        this.type = type;
        this.ndept = ndept;
        this.nuser = nuser;
        this.ncompany = ncompany;
        this.nuseDept = nuseDept;
        this.nplace = nplace;
        this.status = status;
        this.date = date;
        this.isFlag = isFlag;
    }

    public String getIsFlag() {
        return isFlag;
    }

    public void setIsFlag(String isFlag) {
        this.isFlag = isFlag;
    }

    public Long getReturnsId() {
        return returnsId;
    }

    public void setReturnsId(Long returnsId) {
        this.returnsId = returnsId;
    }

    public String getReceivesId() {
        return receivesId;
    }

    public void setReceivesId(String receivesId) {
        this.receivesId = receivesId;
    }

    public String getAssetNumber() {
        return assetNumber;
    }

    public void setAssetNumber(String assetNumber) {
        this.assetNumber = assetNumber;
    }

    public String getCompany() {
        return company;
    }

    public void setCompany(String company) {
        this.company = company;
    }

    public String getDeptId() {
        return deptId;
    }

    public void setDeptId(String deptId) {
        this.deptId = deptId;
    }

    public String getUseDept() {
        return useDept;
    }

    public void setUseDept(String useDept) {
        this.useDept = useDept;
    }

    public String getPlace() {
        return place;
    }

    public void setPlace(String place) {
        this.place = place;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getRdate() {
        return rdate;
    }

    public void setRdate(String rdate) {
        this.rdate = rdate;
    }

    public String getOperator() {
        return operator;
    }

    public void setOperator(String operator) {
        this.operator = operator;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getNdept() {
        return ndept;
    }

    public void setNdept(String ndept) {
        this.ndept = ndept;
    }

    public String getNuser() {
        return nuser;
    }

    public void setNuser(String nuser) {
        this.nuser = nuser;
    }

    public String getNcompany() {
        return ncompany;
    }

    public void setNcompany(String ncompany) {
        this.ncompany = ncompany;
    }

    public String getNuseDept() {
        return nuseDept;
    }

    public void setNuseDept(String nuseDept) {
        this.nuseDept = nuseDept;
    }

    public String getNplace() {
        return nplace;
    }

    public void setNplace(String nplace) {
        this.nplace = nplace;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }
}
